package com.hopu.computer;

/**
 * 工厂对象，提供组件的创建方法
 */
public class ComputerFactoryBean {


    public ICpu getAMDCpu(){
        return new AMDCpu();
    }

    public ICpu getIntelCpu(){
        return new IntelCpu();
    }

    public IMemory getKingstonMemory(){
        return new KingstonMemory();
    }

    public IMemory getSumsungMemory(){
        return new SumsungMemory();
    }
}
